<?php
$config = [
    'id' => 'app',
    'basePath' => dirname(__DIR__),
    'language' => 'zh-CN',
    'vendorPath' => dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'vendor',
    'bootstrap' => ['log'],
    'components' => [
        'request' => [
            'cookieValidationKey' => '',
        ],
        'weixin' => [
            'class' => '\zonday\weixin\Weixin',
        ],
        'user' => [
            'identityClass' => 'app\models\User',
            'enableAutoLogin' => true,
        ],
    ],
];

if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\debug\Module';
}

return $config;